// module.exports = function override(config, env) {
//     // do stuff with the webpack config...
//     return config;
//   };

const { override, fixBabelImports, addWebpackAlias, addBabelPlugin } = require('customize-cra');
const path = require('path')

module.exports = override(
  fixBabelImports('import', {
    libraryName: 'antd-mobile-v2',
    style: 'css',
  }),
  // 添加缓存插件
  addBabelPlugin('react-activation/babel'),
  //增加路径别名的处理 
  addWebpackAlias({  
    '@': path.resolve('./src'),
    '@styles': path.resolve('./src/assets/styles')
  })
);